(*
  Copyright (c) 2009 Barry Schwartz

  Permission is hereby granted, free of charge, to any person
  obtaining a copy of this software and associated documentation
  files (the "Software"), to deal in the Software without
  restriction, including without limitation the rights to use,
  copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the
  Software is furnished to do so, subject to the following
  conditions:

  The above copyright notice and this permission notice shall be
  included in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  OTHER DEALINGS IN THE SOFTWARE.
*)

open Pycaml
open XNum

val argument_count_error: int -> int -> exn
val check_argument_count: int -> pyobject array -> unit
val py_null : pyobject
val py_module : string -> pyobject
val py_module_call : pyobject -> string -> pyobject -> pyobject
val py_module_call_with_keywords : pyobject -> string -> pyobject -> pyobject -> pyobject
val py_object_call : pyobject -> string -> pyobject -> pyobject
val py_object_call_with_keywords : pyobject -> string -> pyobject -> pyobject -> pyobject
val py_builtins_call : string -> pyobject -> pyobject
val py_builtins_call_with_keywords : string -> pyobject -> pyobject -> pyobject
val pydict_of_str_association_list : (string * pyobject) list -> pyobject
val pydict_of_association_list : (pyobject * pyobject) list -> pyobject
val pydict_to_association_list : pyobject -> (pyobject * pyobject) list
val pythonize_bool : bool -> pyobject
val unpythonize_bool : pyobject -> bool
val pythonize_option : ('a -> pyobject) -> 'a option -> pyobject
val unpythonize_option : (pyobject -> 'a) -> pyobject -> 'a option
val pythonize_array : ('a -> pyobject) -> 'a array -> pyobject
val unpythonize_array : (pyobject -> 'a) -> pyobject -> 'a array
val pythonize_list : ('a -> pyobject) -> 'a list -> pyobject
val unpythonize_list : (pyobject -> 'a) -> pyobject -> 'a list
val pythonize_tm : Unix.tm -> pyobject
val unpythonize_tm : pyobject -> Unix.tm
val unpythonize_int_tuple : pyobject -> int * int
val unpythonize_string_tuple : pyobject -> string * string
val pywrap_int_to_int_function : (int -> int) -> pyobject
